<script>
var r = prompt("请输入圆的半径");

var s = 3.14*parseInt(r)*parseInt(r);

alert("圆的面积为:"+s);
</script>